package com.mlf.factory.easyFactory.spring;

import org.springframework.stereotype.Service;

// 实现类
@Service("CREDIT_CARD")
class CreditCardService implements PaymentService {
    @Override
    public void pay(double amount) {
        System.out.println("Credit card payment: " + amount);
    }
}